<?php
/**
 * Created by PhpStorm.
 * User: 李京蔚
 * Date: 2018/7/10
 * Time: 18:38
 */

namespace App\Http\Controllers\Users;


use App\Lib\pdf\PdfWatermark;
use App\Models\User;
use Illuminate\Http\Request;

class IndexController extends ApiController
{






    public function demo(Request $request){

        $data = $request->all();
        $data['url'] = config('app.url');
        $data['demo'] = json_decode('["2","1"]');
//        session()->put('test', 'test');
//        $data['session'] = session()->all();
        return $this->json(true,'OK',$data);
    }



    /**
     * 测试接口
     * @return string
     */
    public function test()
    {

        $list = User::list();

        return $this->json(true,'OK',$list);

    }
}
